package com.intretech.tj.start;

import com.intretech.tj.global.parent.OutLogParent;
import jakarta.enterprise.context.ApplicationScoped;
import lombok.extern.slf4j.Slf4j;


/**
 * 日志输出
 */
@Slf4j
@ApplicationScoped
public class OutLog extends OutLogParent {
    public static final String Start = "应用启动";
    public static final String Stop = "应用停止";


    @Override
    protected void setServerName() {
        serverName = "APP";
    }

    public void start() {
        log.info(getMessage(Start));
    }

    public void stop() {
        log.info(getMessage(Stop));
    }

}
